package cn.lasse.springframework.beans.factory;

import cn.lasse.springframework.beans.BeansException;

public interface BeanFactory {

    /**
     * 获取bean
     */
    Object getBean(String name) throws BeansException;
    /**
     * 获取bean
     */
    Object getBean(String name, Object... args) throws BeansException;

    <T> T getBean(String name, Class<T> requiredType) throws BeansException;

    <T> T getBean(Class<T> requiredType) throws BeansException;
}
